package com.edu.gcu.manager.service;

import com.edu.gcu.system.common.ServerResponse;
import com.edu.gcu.system.pojo.Product;
import com.github.pagehelper.PageInfo;

/**
 * @author polo
 * @version V1.0
 * @description: 产品service接口
 * @date 2018-02-20-12:22
 */

public interface IProductService {
    ServerResponse delete(String id, String productId);

    ServerResponse update(String id, Product product);

    ServerResponse change(String id, String productId, Integer status);

    ServerResponse<PageInfo> list(String name, Integer status, String orderBy, Integer pageNum,
                                  Integer pageSize);

    ServerResponse add(String id, Product product);

    ServerResponse detail(String id);
}
